package com.oneinlet.controller;

import com.oneinlet.component.activemq.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by WangZiHe on 2018/6/9
 * QQ/WeChat:648830605
 * QQ-Group:368512253
 * Blog:www.520code.net
 * Github:https://github.com/yancheng199287
 */
@RestController
@RequestMapping("/mq")
public class ActiveMqController extends BaseController {

    @Autowired
    private Producer producer;

    @RequestMapping(value = "/sendMsg")
    public Object convertAndSend() {
        producer.convertAndSend();
        return setOKResult();
    }
}
